package com.example.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "推荐书籍", description = "用于app的推荐书籍")
public class HotHistory {
    /*编号*/
    @ApiModelProperty(value = "id", example = "1")
    private Integer id;
    /*名字*/
    @ApiModelProperty(value = "书籍名称", example = "生活在宋朝")
    private String name;
    /*封面图片*/
    @ApiModelProperty(value = "书籍图片", example = "http://47.96.160.116:9090/files/1722233536740-生活在宋朝.png")
    private String img;
    /*收藏量*/
    @ApiModelProperty(value = "书籍收藏量", example = "1")
    private String collect;
    /*介绍*/
    @ApiModelProperty(value = "书籍介绍", example = "作者想重新讲述宋代中国的三百年繁华，重新发现中国的文明传统，破除人们对宋朝的成见与偏见，再现一个“活”着的时代")
    private String detail;

    @ApiModelProperty(value = "用于找书(一般为null)", example = "应用https://127.0.0.1:9090/hothistory/selectAll?booksname=研究")
    private String booksname;

    public String getBooksname() {
        return booksname;
    }

    public void setBooksname(String booksname) {
        this.booksname = booksname;
    }

    public String getBid() {
        return bid;
    }

    public void setBid(String bid) {
        this.bid = bid;
    }

    /*作者*/
    @ApiModelProperty(value = "书籍作者", example = "吴钩")
    private String author;
    @ApiModelProperty(value = "书籍id与books表中的id相对应", example = "1")
    private String bid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getCollect() {
        return collect;
    }

    public void setCollect(String collect) {
        this.collect = collect;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
